package com.alkaid.commons.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Kylin
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Data
@Component
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user_role")
public class Authority extends BaseEntity implements Serializable {
    @TableId
    private Long id;
    private Long userId;
    private Integer roleId;
    @TableField(exist = false)
    private String authority;
    private Date expiredTime;
}
